package com.cellulam.framework.scheduled;

import lombok.Data;

@Data
public class ExecuteResult {
    private TaskExeResult result;
    private String message;

    public ExecuteResult(boolean success) {
        this(success, null);
    }

    public ExecuteResult(boolean success, String message) {
        this(success ? TaskExeResult.SUCCESS : TaskExeResult.FAIL, message);
    }

    public ExecuteResult(TaskExeResult result, String message) {
        this.result = result;
        this.message = message;
    }
}
